/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.just.dusin.ooii.component;

import java.util.Properties;

/**
 *
 * @author Administrator
 */
abstract public class Source implements Component,Runnable{
    protected Sink sink;
    protected String name;
    protected boolean stop = false;
    
    public Sink getSink() {
        return sink;
    }

    public void setSink(Sink sink) {
        this.sink = sink;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }   
    
    public void stop(){
        stop = true;
    }

    public boolean isStop() {
        return stop;
    }
    public void setStop(boolean s){
        stop = s;
    }

    @Override
    public void initComponent(Properties props) {
        
    }

    @Override
    public void destroyComponent() throws Exception {
        
    }
    
    
}
